package com.eazy.lkv2.web.mapper;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSession;

import com.eazy.lkv2.core.annotation.Table;


public class CoreMapper  {

	protected Table table;
	CoreProperties prop = null;

	public CoreMapper() {
		table = this.getClass().getAnnotation(Table.class);
		prop = new CoreProperties(table.name());
	}
	
	@Resource
	private SqlSession sqlSession;
	
	public List<Map<String, Object>> select() {
		return sqlSession.selectList("com.eazy.lkv2.web.mapper.Core.select",prop);
	}
}
